#ifndef _OHAI_CLIENT_H_
#define _OHAI_CLIENT_H_

/* Routines for client control of ohaigent.
 *
 * Copyright 2009 Cian Synnott.
 * 
 * $Id: client.h 20 2009-11-27 22:35:39Z cian $
 */
#include "xmpp.h"
typedef struct _client_session client_session;

/* Sets up a UNIX domain server for clients.
 *
 * Args:
 * - sess: an xmpp_session structure
 * - path: path to a UNIX domain socket to create and use
 */
client_session *client_setup(xmpp_session *sess, char *path);

/* Frees resources associated with a client session.
 *
 * Args:
 * - sess: a client_session to tear down
 */
void client_teardown(client_session *sess);

#endif /* _OHAI_CLIENT_H_ */
